package breakDemo;

import java.util.Random;
import java.util.Scanner;

public class Test1 {
	public static void main(String[] args) {
	Random rand = new Random();
	int num = rand.nextInt(100);
	Scanner scan = new Scanner(System.in);
	while(true) {
		int putin = scan.nextInt();
		if(putin>num) {
		System.out.println("输入值大");	
		}
		else if(putin<num){
			
			System.out.println("输入值小");	
		}
		else {
			System.out.println("你赢了");	
		break;	
		}
		
		
	}
	
	}
}
